package com.jinwei.servicefeign.api;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "myclientAB",fallback =HiApiFallback.class)
@Service
public interface HiApi {


    /**
     * 调用 myclientAB （可以有相同多个）服务的接口
     * 方法参数与返回值 应该与真实的方法相同
     */

    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    String sayYouHi();
}
